﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Focus.ascx.cs" Inherits="Controls_Focus" %>
<div class="hot-news">
    <div class="frame-slide">
        <div id="slider" class="nivoSlider">
            <asp:Repeater ID="rpt2" runat="server">
                <ItemTemplate>
                    <a href="<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>">
                        <img src="<%#UrlBuilder.GetImage(Eval("ImageUrl").ToString(),425,360,true) %>"  title="<h1><a href='<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>'><%#HttpContext.Current.Server.HtmlEncode(Eval("Title").ToString()) %></a></h1><p> <%#HttpContext.Current.Server.HtmlEncode(FormatString.SplitString( Eval("Summary"),150)) %> </p>" />
                        </a>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <!-- end frame-slide -->
    <ul class="new-news">
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <li>
                    <img src="<%#UrlBuilder.GetImage(Eval("ImageUrl").ToString(),55,55,true) %>" alt="<%#Eval("Title") %>" />
                    <a href="<%#UrlBuilder.GetNewsDetail(Eval("TextId").ToString(),Eval("CreatedDate")) %>">
                        <%#Eval("Title") %>
                    </a></li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
